package com.sqx.modules.trends.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.modules.app.entity.TbFootprint;
import com.sqx.modules.goodsType.entity.GoodsType;
import com.sqx.modules.scFollow.entity.ScFollow;
import com.sqx.modules.trends.entity.TrendsType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author Admin
 * @description 针对表【trends_type(动态类型)】的数据库操作Mapper
 * @createDate 2024-07-23 10:45:07
 * @Entity generator.domain.TrendsType
 */
@Mapper
public interface TrendsTypeDao extends BaseMapper<TrendsType> {

    IPage<TrendsType> selectTrendsTypeList(@Param("pages") Page<TrendsType> pages,
                                           @Param("trendsType") TrendsType trendsType);

    List<ScFollow> selectByUserId(@Param("userId") Long userId);

    List<TbFootprint> selectByFootprintList(@Param("userId")Long userId);

    List<GoodsType> selectByGoodsType(@Param("allGoodIds") Set<Long> allGoodIds);

}




